import axios from "axios";

export function getSellTicketApi(params) {
	return axios.get("/gfn/api/v1/query_range", {
		params,
		paramsSerializer: (params) => {
			// Sample implementation of query string building
			let result = "";
			Object.keys(params).forEach((key) => {
				result += `${key}=${encodeURIComponent(params[key])}&`;
			});
			return result.substr(0, result.length - 1); //空格转义为+修改为%20
		},
	});
}
